

<!--{template admin/header}-->

<div id="main_wp" class="mt10">
    <form action="admin.php?mod=mall&code=goods_list" method="post">
<!--        <input type="hidden" value="mall" name="mod">
        <input type="hidden" value="goods_list" name="code">-->
        <table cellspacing="1" width="100%" align="center" class="tableborder">
            <tr class="header">
                <td colspan="6">快捷搜索</td>
            </tr>
            <tbody id="menu_tip" style="display:">
                <tr>
                    <td class="altbg1" width="120" >商品名称</td>
                    <td class="altbg2">
                        <input type="text" name="name" value="{$name}" size="20" />
                    </td>
                </tr>
                <tr>
                    <td class="altbg1" width="120">商品类型</td>
                    <td class="altbg2">
                        <select name="style">
                            <option value="">请选择</option>
                            <!--{loop $goods_type $key $val}-->
                            <option value="{$key}">{$val}</option>
                            <!--{/loop}-->
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="altbg1" width="120"></td>
                    <td class="altbg2">
                        <button class="button lf" type="submit" name="setting_submit" id="setting_submit" style="margin-right: 10px;">搜索</button>&nbsp;&nbsp;
                    </td>
                </tr>
        </table>
    </form>
</div>
<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
<tr class="header">
	<td width="30%">商品名称</td>
	<td width="10%">商品类型</td>
	<td width="10%">价格</td>
	<td width="10%">兑换所需{$config['credits_name']}</td>
	<td width="10%">商品总数（库存数）</td>
	<td width="10%">订单总数</td>
	<td width="10%">兑换有效期</td>
	<td width="10%">管理</td>
</tr>

<!--{loop $list['list'] $one}-->
<tr class="altbg1" id="tr_id_{$one['id']}">
<td width="30%">
	{$one['name']}<!--{if $one['expire'] != '0' && $one['expire'] < TIMESTAMP}--><font color="red">（已下架）</font><!--{/if}-->
</td>
<td width="10%">
	{$goods_type[$one['style']]}
</td>
<td width="10%">
	{$one['price']}
</td>
<td width="10%">
	{$one['gold']}
</td>

<td width="10%">
	{$one['total']}
</td>
<td width="10%">
	{$one['order_count']}
	<a href="admin.php?mod=mall&code=order_list&gid={$one['id']}">查看</a>
</td>
<td width="10%">
	<!--{if $one['expire'] != '0' && $one['expire'] < TIMESTAMP}--><font color="red"><!--{/if}-->
	<!--{if $one['expire'] == '0'}-->无<!--{else}-->{eval echo date("Y-m-d H:i",$one['expire']);}<!--{/if}-->
	<!--{if $one['expire'] != '0' && $one['expire'] < TIMESTAMP}--></font><!--{/if}-->
</td>
<td width="10%">
	<a href="admin.php?mod=mall&code=modify_goods&id={$one['id']}">编辑</a>&nbsp;&nbsp;
	<a href="admin.php?mod=mall&code=deltes_goods&id={$one['id']}">删除</a>
</td>
</tr>
<!--{/loop}-->
</table>
{$list['page']['html']}





